package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品sku表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("shop_specification_sku")
public class ShopSpecificationSku extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 商品主键id
     */
    @TableField("shop_product_id")
    private Integer shopProductId;
    /**
     * 商品类型(1:普通 2:拼团)
     */
    private Integer type;
    /**
     * 规格值一id_规格值二id_规格值三id
     */
    @TableField("sku_id")
    private String skuId;

    /**
     * 规格值描述
     */
    private String skuDescribe;
    /**
     * 库存值
     */
    private Integer stock;
    /**
     * 规格编码
     */
    @TableField("specification_code")
    private String specificationCode;
    /**
     * 销售价格
     */
    @TableField("sale_price")
    private BigDecimal salePrice;
    /**
     * 成本价格
     */
    @TableField("cost_price")
    private BigDecimal costPrice;
    /**
     * 原价格
     */
    @TableField("line_price")
    private BigDecimal linePrice;
    /**
     * 商品优惠价格
     */
    @TableField("discount_price")
    private BigDecimal discountPrice;
    /**
     * 限制购买数量
     */
    private Integer limitNum;
    /**
     * 是否默认(0:否 1:是)
     */
    @TableField("is_default")
    private Integer isDefault;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_deleted")
    private Integer isDeleted;


}
